package vg.interfaces.ll_services.data_base_service.data.header;

public class GraphModelHeader implements Cloneable {
	// Main data
	private final int id;
	private String name;

	public GraphModelHeader(int id) {
		this.id = id;
		this.name = null;
	}
	
	public GraphModelHeader(int id, String name) {
		this.id = id;
		this.name = name;
	}

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
	public GraphModelHeader clone() {
		return new GraphModelHeader(id, name);
	}
	
	@Override
	public int hashCode() {
		return id;
	}
	
	@Override
	public boolean equals(Object o) {
		return  o != null && (o instanceof GraphModelHeader && ((GraphModelHeader)o).id == id);
	}
}
